Page({
  data: {
    moveInfo: {}
  },

  onLoad(){
    this.stemInfo = wx.getSystemInfoSync();
  },

  moveElStart(e){
    let touche = e.touches[0];
    
    this._move_start_x = touche.pageX;
    this._move_start_y = touche.pageY;
  },

  moveElMove(e){
    let touche = e.touches[0], 
        screen_width = this.stemInfo.screenWidth,
        screen_height = this.stemInfo.screenHeight, 
        base_el_width = (screen_width / 750) * 60;
        
    if (touche.pageX + base_el_width <= screen_width && touche.pageX >= 0){
      this._move_x = touche.pageX;
      this._move_y = touche.pageY;
      this.setData({
        moveInfo: {
          top: this._move_y,
          left: this._move_x
        }
      });
    }
    
  }
})